package com.topfinance.payment.ebo;

// Generated 2011-1-9 9:12:59 by Hibernate Tools 3.4.0.Beta1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Type;
import org.springframework.orm.hibernate3.support.ClobStringType;

/**
 * TC2FmtXml generated by hbm2java
 */
@Entity
@Table(name = "T_CFG_FMT_XML")
@SuppressWarnings("serial")  
public class TCfgFmtXmlEbo implements java.io.Serializable {

	private Integer id;

	private TCfgFormatEbo tCfgFormat;

	private char isFile;

	private String fileName;
	
	@Type(type = "org.springframework.orm.hibernate3.support.ClobStringType")
	private String xsdFile;

	public TCfgFmtXmlEbo() {
	}

	public TCfgFmtXmlEbo(Integer id, char isFile) {
		this.id = id;
		this.isFile = isFile;
	}

	public TCfgFmtXmlEbo(Integer id, Integer oid, char isFile, String fileName, String xsdFile) {
		this.id = id;
		this.isFile = isFile;
		this.fileName = fileName;
		this.xsdFile = xsdFile;
	}	
	
	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
	@SequenceGenerator(name = "CFG_SEQUNCE_GEN", sequenceName = "S_CFG_SEQUNCE")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CFG_SEQUNCE_GEN")
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "OID")
	public TCfgFormatEbo getTCfgFormat() {
		return this.tCfgFormat;
	}

	public void setTCfgFormat(TCfgFormatEbo tCfgFormat) {
		this.tCfgFormat = tCfgFormat;
	}
	
	@Column(name = "IS_FILE", nullable = false, length = 1)
	public char getIsFile() {
		return this.isFile;
	}

	public void setIsFile(char isFile) {
		this.isFile = isFile;
	}

	@Column(name = "FILE_NAME", length = 512)
	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	
	@Column(name = "XSD_FILE")
	public String getXsdFile() {
		return this.xsdFile;
	}
	public void setXsdFile(String xsdFile) {
		this.xsdFile = xsdFile;
	}
}
